<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<#include "/common/resources.ftl"/>
<script type="text/javascript">
	function m_submit(){
		window.saveOrEditForm.submit();
	}
	
	function m_back(){
		window.location.href = 'shouldShou?id=${model.id}&orderId=${model.orderId}';
	}
	$(function(){
		<#if model?exists >$("#type").combobox('setValue','${model.type}')</#if>
	});
	<#if errorMsg?exists >alert('${errorMsg}');</#if>
</script>
</head>
<body>
  <form action="${ctx}/qfbao/loancommision/save_edit" method="post" class="loan_list_form" name="saveOrEditForm">
  <div class="fm_sty" style="margin: 20px 0px 0px;">
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">付款人姓名</span>
				<input type="text" name="remark" value="" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">金额</span>
				<input type="hidden" name="orderId" value="<#if model?exists >${model.orderId}</#if>" class="ipt_226" />
				<input type="text" name="amount" value="<#if model?exists >${model.amount}</#if>" class="ipt_226" />
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">款类</span>
				<!--<input type="text" name="type" value="<#if model?exists >${model.type}</#if>" class="ipt_226" />-->
				<input id="type" name="type" class="easyui-combobox" style="height:39px; width:263px;"
					data-options="
						valueField:'id',
						textField:'dicName',
						url:'${ctx}/qfbao/loancommision/getDictionaryList'" />
			</div>
		<#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">收款日期</span>
				<input type="text" name="paymentDate" value="<#if model?exists >${model.paymentDate?string("yyyyMMdd HH:mm:ss")}</#if>" class="easyui-datebox" panelWidth="255" style="height:39px;"/>
			</div>
        <#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">收款人</span>
				巧房宝运营管理后台<input type="hidden" name="payeeId" value="5" class="ipt_226" />
			</div>
		<#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">户名</span>
				<input type="text" name="accountName" value="<#if model?exists >${model.accountName}</#if>" class="ipt_226" />
			</div>
		<#if model?exists >
        <#else>
        </#if>
	       	<div class="ipt_line">
				<span class="ipt_title">收款人账号</span>
				<input type="text" name="accountNo" value="<#if model?exists >${model.accountNo}</#if>" class="ipt_226" />
			</div>
      <div class="ipt_line_long">
            <button class="red_100" onclick="javascript:m_submit();return false;">保存</button>
            <button class="red_100" onclick="javascript:m_back();return false;" style="background-color:#74D86A">返回</button>
      </div>
	</div>
	</form>
</body>
</html>
